import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: { //重定向
      name: 'SteppeResourceInventory'
    },
    hidden: true,
  }, {
    path: '/steppe/SteppeResourceInventory',
    name: 'SteppeResourceInventory',
    component: () => import('@/views/Steppe/SteppeResourceInventory/index.vue'),
    meta: {
      icon: 'el-icon-s-order',
      title: '草原资源资产清查成果数据',
    },
  }, {
    path: '/Steppe/SteppeResourceInventory/data',
    name: 'SteppeResourceInventoryData',
    hidden: true,
    component: () => import('@/views/Steppe/SteppeResourceInventory/data.vue'),
    meta: {
      icon: 'el-icon-s-order',
      title: '草原资源资产清查成果数据',
    }
  }, {
    path: '/steppe/SteppeResourceInventoryFieldInvestigation',
    name: 'SteppeResourceInventoryFieldInvestigation',
    component: () => import('@/views/Steppe/SteppeResourceInventoryFieldInvestigation/index.vue'),
    meta: {
      icon: 'el-icon-s-order',
      title: '草原资源资产清查外业调查',
    },
  }, {
    path: '/Steppe/SteppeResourceInventoryFieldInvestigation/data',
    name: 'SteppeResourceInventoryFieldInvestigationData',
    hidden: true,
    component: () => import('@/views/Steppe/SteppeResourceInventoryFieldInvestigation/data.vue'),
    meta: {
      icon: 'el-icon-s-order',
      title: '草原资源资产清查外业调查',
    }
  }, {
    path: '/steppe/shape',
    name: 'shape',
    component: () => import('@/views/Steppe/shape/index.vue'),
    meta: {
      icon: 'el-icon-s-order',
      title: 'shape数据验证',
    },
  }, {
    path: '/Steppe/shape/data',
    name: 'shapeData',
    hidden: true,
    component: () => import('@/views/Steppe/shape/data.vue'),
    meta: {
      icon: 'el-icon-s-order',
      title: 'shape上传',
    }
  },
  {
    path: '/Steppe/shape/data1',
    name: 'shapeData1',
    hidden: true,
    component: () => import('@/views/Steppe/shape/data1.vue'),
    meta: {
      icon: 'el-icon-s-order',
      title: 'shape上传1',
    }
  }
]

const router = new VueRouter({
  routes
})

export default router
